\hypertarget{sort_8c}{
\section{sort.c File Reference}
\label{sort_8c}\index{sort.c@{sort.c}}
}
{\ttfamily \#include $<$stdio.h$>$}\par
{\ttfamily \#include $<$stdlib.h$>$}\par
{\ttfamily \#include $<$string.h$>$}\par
{\ttfamily \#include $<$unistd.h$>$}\par
\subsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct \hyperlink{structx}{x}
\end{DoxyCompactItemize}
\subsection*{Defines}
\begin{DoxyCompactItemize}
\item 
\#define \hyperlink{sort_8c_a52037c938e3c1b126c6277da5ca689d0}{M}~50
\item 
\#define \hyperlink{sort_8c_af19c63c9ce5a72fc7d0c85ad0ba3d598}{datalen}~20
\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
int \hyperlink{sort_8c_a16ebf692a4eee1e49eade7fb2a6636ff}{sort\_\-default} (int argcounter, char $\ast$$\ast$argvector)
\begin{DoxyCompactList}\small\item\em function executed to sort the columns in the file \item\end{DoxyCompactList}\item 
int \hyperlink{sort_8c_a3c04138a5bfe5d72780bb7e82a18e627}{main} (int argc, char $\ast$$\ast$argv)
\begin{DoxyCompactList}\small\item\em command main function \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Variables}
\begin{DoxyCompactItemize}
\item 
struct \hyperlink{structx}{x} \hyperlink{sort_8c_a40817a93bb761f0453417ec953820444}{data} \mbox{[}M\mbox{]}
\end{DoxyCompactItemize}


\subsection{Detailed Description}
\begin{DoxyAuthor}{Author}
Oana Munteanu, anul 2 Informatica -\/ Engleza 
\end{DoxyAuthor}
\begin{DoxyVersion}{Version}
1.0
\end{DoxyVersion}
sort columns in file 

\subsection{Define Documentation}
\hypertarget{sort_8c_af19c63c9ce5a72fc7d0c85ad0ba3d598}{
\index{sort.c@{sort.c}!datalen@{datalen}}
\index{datalen@{datalen}!sort.c@{sort.c}}
\subsubsection[{datalen}]{\setlength{\rightskip}{0pt plus 5cm}\#define datalen~20}}
\label{sort_8c_af19c63c9ce5a72fc7d0c85ad0ba3d598}
\hypertarget{sort_8c_a52037c938e3c1b126c6277da5ca689d0}{
\index{sort.c@{sort.c}!M@{M}}
\index{M@{M}!sort.c@{sort.c}}
\subsubsection[{M}]{\setlength{\rightskip}{0pt plus 5cm}\#define M~50}}
\label{sort_8c_a52037c938e3c1b126c6277da5ca689d0}


\subsection{Function Documentation}
\hypertarget{sort_8c_a3c04138a5bfe5d72780bb7e82a18e627}{
\index{sort.c@{sort.c}!main@{main}}
\index{main@{main}!sort.c@{sort.c}}
\subsubsection[{main}]{\setlength{\rightskip}{0pt plus 5cm}int main (int {\em argc}, \/  char $\ast$$\ast$ {\em argv})}}
\label{sort_8c_a3c04138a5bfe5d72780bb7e82a18e627}


command main function 


\begin{DoxyParams}{Parameters}
\item[{\em argc}]-\/ calling arguments counter \item[{\em $\ast$$\ast$argv}]-\/ calling arguments vector\end{DoxyParams}
\begin{DoxyReturn}{Returns}
0 on success or a positive int on failure 
\end{DoxyReturn}


\begin{DoxySeeAlso}{See also}
run command if argv contains a filename 

\hyperlink{sort_8c_a16ebf692a4eee1e49eade7fb2a6636ff}{sort\_\-default} (argc, argv);
\end{DoxySeeAlso}


\hypertarget{sort_8c_a16ebf692a4eee1e49eade7fb2a6636ff}{
\index{sort.c@{sort.c}!sort\_\-default@{sort\_\-default}}
\index{sort\_\-default@{sort\_\-default}!sort.c@{sort.c}}
\subsubsection[{sort\_\-default}]{\setlength{\rightskip}{0pt plus 5cm}int sort\_\-default (int {\em argcounter}, \/  char $\ast$$\ast$ {\em argvector})}}
\label{sort_8c_a16ebf692a4eee1e49eade7fb2a6636ff}


function executed to sort the columns in the file 


\begin{DoxyParams}{Parameters}
\item[{\em argcounter}]-\/ calling arguments counter \item[{\em $\ast$$\ast$argvector}]-\/ calling arguments vector\end{DoxyParams}
\begin{DoxyReturn}{Returns}
0 
\end{DoxyReturn}


\subsection{Variable Documentation}
\hypertarget{sort_8c_a40817a93bb761f0453417ec953820444}{
\index{sort.c@{sort.c}!data@{data}}
\index{data@{data}!sort.c@{sort.c}}
\subsubsection[{data}]{\setlength{\rightskip}{0pt plus 5cm}struct {\bf x}  {\bf data}\mbox{[}M\mbox{]}}}
\label{sort_8c_a40817a93bb761f0453417ec953820444}
